package com.javabean;

/*
 *      电影测试类
 *
 *
 * */


public class MovieTest {
    public static void main(String[] args) {
        //空参构造+get
        Movie m1 = new Movie();
        //赋值
        m1.setName("剑来");
        m1.setType("动漫");
        m1.setDirector("烽火戏诸侯");

        //取值
        System.out.println(m1.getName() + "," +m1.getType() + "," + m1.getDirector());
        //带参构造-->穿件对象并赋值
        Movie m2 = new Movie("阿凡达" ,"科幻片" ,"詹姆斯卡梅隆");

        System.out.println(m2.getName() + "," +m2.getType() + "," + m2.getDirector());
    }


}
